<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 三栏布局，左右两列定宽，中间列自适应 display:table 和table-cell */

        .container{
            display: table;
            height: 200px;
        }

        .left{
            width: 200px;
            background-color: rebeccapurple;
            display: table-cell;
        }
        .center{
            background-color: aqua;
            display: table-cell;
        }
        .right{
            width: 200px;
            display: table-cell;
            background-color: blue;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="left">left</div>   
        <div class="center">
            <div>
                gggggggggggggggggg
                gggggggggggggggggggggggggggd
                fsdfsgfgfdgfdgfg

            </div>
        </div>
        <div class="right">right</div>
    </div>
   
</body>
</html>